Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OptIn assets and triggers #1184

Merged
merged 5 commits into from
Sep 14, 2023
Merged

OptIn assets and triggers #1184

merged 5 commits into from
Sep 14, 2023

Conversation

rowanseymour
Copy link
Member

@rowanseymour rowanseymour commented Sep 14, 2023

So that in a flow triggered by an optin or optout, you can do @trigger.optin, @trigger.optin.name etc

And whatever action we add to solicit an optin needs to know about optins.

@codecov
Copy link

codecov bot commented Sep 14, 2023

Codecov Report

Merging #1184 (eeff921) into main (abd1598) will decrease coverage by 0.10%.
The diff coverage is 71.21%.

@@            Coverage Diff             @@
##             main    #1184      +/-   ##
==========================================
- Coverage   87.73%   87.64%   -0.10%     
==========================================
  Files         256      260       +4     
  Lines       10922    10988      +66     
==========================================
+ Hits         9582     9630      +48     
- Misses        920      935      +15     
- Partials      420      423       +3     
Files Changed Coverage Δ
assets/optin.go 0.00% <0.00%> (ø)
assets/static/channel.go 100.00% <ø> (ø)
flows/triggers/optin.go 61.29% <61.29%> (ø)
flows/optin.go 93.33% <93.33%> (ø)
assets/static/optin.go 100.00% <100.00%> (ø)
assets/static/source.go 75.92% <100.00%> (+3.37%) ⬆️
flows/engine/assets.go 94.11% <100.00%> (+0.36%) ⬆️
flows/triggers/base.go 82.65% <100.00%> (+0.17%) ⬆️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

assets/optin.go Outdated
// "name": "Joke Of The Day",
// "channel": {
// "uuid": "204e5af9-42c3-4d46-8aab-ce204dff25b4",
// "name": "Facebook"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

making optins channel specific.. because we're going to associate auth keys with optins and they are obviously channel specific

@@ -19,7 +19,7 @@ type Channel struct {
}

// NewChannel creates a new channel
func NewChannel(uuid assets.ChannelUUID, name string, address string, schemes []string, roles []assets.ChannelRole, parent *assets.ChannelReference) assets.Channel {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unrelated cleanup

@rowanseymour rowanseymour merged commit 4991791 into main Sep 14, 2023
5 of 7 checks passed
@rowanseymour rowanseymour deleted the optins branch September 14, 2023 19:36
@github-actions github-actions bot locked and limited conversation to collaborators Sep 14, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant